<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
            <div class="tit"><{$left_menu_min.menu}></div>
            <ul>
                <{foreach from=$left_menu_min.list item=item}>
                <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                <{/foreach}>
            </ul>
        </div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span class="curr">分类列表</span>
				    <span><a href="/tk_category/add">添加分类</a></span>
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				            <!--star会员管理-->
							<fieldset class="layui-elem-field">
						  		<legend>按条件搜索</legend>
						  		<div class="layui-field-box">
									<form class="layui-form layui-form-pane1" method="post" action="<{$current_url}>">
										<div class="layui-form-item">
									    	<div class="layui-inline">
									    		<input type="text" name="name" placeholder="分类名称" value="<{if $name}><{$name}><{/if}>" class="layui-input">
									    	</div>
									    	<div class="layui-inline">
									    		<button type="submit" class="layui-btn">搜索</button>
									    		<a class="layui-btn" href="/tk_category/add"><i class="layui-icon"></i> 添加分类</a>
									    	</div>
								    	</div>

										
									</form>
						  		</div>
							</fieldset>
		                	<form class="layui-form layui-form-pane1" method="post" delete_action="/tk_category/delete">
							<table class="layui-table" lay-even lay-skin="row">
							  	<thead>
								  	<tr>
									  	<th>ID</th>
									  	<th>分类名称</th>
									  	<th>分类简介</th>
									  	<th>排序</th>
									  	<th>是否启用</th>
									  	<th>创建时间</th>
									  	<th>操作</th>
								  	</tr>
							  	</thead>   
							  	<tbody>
							  	<{foreach from=$tk_category_list item=item}>
								  	<tr>
								  		<td class="center">
											<input type="checkbox" name="ids[]" value="<{$item['id']}>" title="<{$item['id']}>">
								  		</td>
								  		<td class="center"><{$item['name']}></td>
								  		<td class="center"><{$item['content']}></td>
								  		<td class="center"><{$item['sort']}></td>
								  		<td class="center"><{if $item['status'] == 1}>是<{else}>否<{/if}></td>
								  		<td class="center"><{$item['add_time']|date_format:'%Y-%m-%d %H:%M:%S'}></td>
								  		<td class="center">
								  			<{if $item['school_id'] != 0}>
											<a class="layui-btn layui-btn-primary layui-btn-small" href="/tk_category/edit/<{$item['id']}>" target="_blank"><i class="layui-icon"></i></a>
											<a class="layui-btn layui-btn-primary layui-btn-small delete_data" href="/tk_category/delete/<{$item['id']}>"><i class="layui-icon"></i></a>
											<{/if}>
										</td>
								  	</tr>
							  	<{/foreach}>
							  	<{if $tk_category_list|count eq 0}>
							  		<tr>
								  		<td class="center" style=" height:120px; text-align:center;line-height:120px;" colspan="8">
											赞无数据！
										</td>
								  	</tr>
							  	<{/if}>
						  		</tbody>
						  	</table>
					  	</form>
					  	<div class="layui-box layui-laypage layui-laypage-default">
							<{$pagination}>
						</div>

			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>

		    </div>
		</div>

	</div>
</div>
<{include file="footer.html"}>
</body>
</html>